<template>
  <div class="box">
    <el-pagination
      background
      @current-change="handleCurrentChange"
      :current-page="page"
      :page-size="pageSize"
      :total="total"
    ></el-pagination>
  </div>
</template>

<script>
export default {
    props:{
        page:{
            default(){
                return 1
            },
            type:Number
        },
        pageSize:{
            default(){
                return 10
            },
            type:Number
        },
        total:{
            default(){
                return 0
            },
            type:Number
        }
    },
  methods: {
    handleCurrentChange(val) {
      this.$emit('changePage',val)
    }
  },
  data() {
    return {
      currentPage4: 4
    };
  }
};
</script>

<style lang="less" scoped>
.box{
    width: 600px;
    margin-left: 850px;
    margin-top: 20px;
}
</style>